package models

import "gorm.io/gorm"

type Order struct {
	gorm.Model
	UserId  int    `gorm:"type:int(11);not null;comment:用户ID"`
	HouseId int    `gorm:"type:int(11);not null;comment:房源ID"`
	OrderOn string `gorm:"type:varchar(50);unique;not null;comment:订单号"`
	Price   int    `gorm:"type:int(11);not null;comment:价格"`
	PayType int    `gorm:"type:tinyint;not null;comment:支付方式 0:支付宝 1:微信 2:银联"`
	Status  int    `gorm:"type:tinyint;not null;comment:状态 0:预约成功 1:预约取消 2:已看房"`
}
